import request from '@/utils/request'

// 查询内转记录列表
export function listWRecordTransferIn(query) {
  return request({
    url: '/api/wRecordTransferIn/list',
    method: 'get',
    params: query
  })
}

// 查询内转记录详细
export function getWRecordTransferIn(id) {
  return request({
    url: '/api/wRecordTransferIn/' + id,
    method: 'get'
  })
}

// 新增内转记录
export function addWRecordTransferIn(data) {
  return request({
    url: '/api/wRecordTransferIn',
    method: 'post',
    data: data
  })
}

// 修改内转记录
export function updateWRecordTransferIn(data) {
  return request({
    url: '/api/wRecordTransferIn',
    method: 'put',
    data: data
  })
}

// 删除内转记录
export function delWRecordTransferIn(id) {
  return request({
    url: '/api/wRecordTransferIn/' + id,
    method: 'delete'
  })
}
